#include "aboutsoft.h"
#include "ui_aboutsoft.h"
#include <QDebug>

aboutsoft::aboutsoft(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::aboutsoft)
{
    ui->setupUi(this);
    this->movie = new QMovie("tom.gif");
    qDebug() << "动画帧数:" << this->movie->frameCount();
    ui->movlabel->setMovie(this->movie);
    this->movie->start();

    QObject::connect(ui->goonButton, SIGNAL(clicked(bool)), this, SLOT(GoOnMovieSlot()));
    QObject::connect(ui->stopButton, SIGNAL(clicked(bool)), this, SLOT(StopMovieSlot()));
}

aboutsoft::~aboutsoft()
{
    delete ui;
}

void aboutsoft::StopMovieSlot()
{
    this->movie->stop();
}

void aboutsoft::GoOnMovieSlot()
{
    this->movie->start();
}
